package com.atomic.test.example.service;


import com.atomic.test.example.entity.Post;
import com.atomic.test.example.query.CreatePostDo;

import java.util.List;

/**
 * Created by dreamyao on 2017/3/9.
 */
public interface IPostService {

    /**
     * 创建帖子
     * @param createPostDo
     * @return
     */
    Integer insertPost(CreatePostDo createPostDo);

    /**
     * 查看帖子
     * @param postTitle
     * @return
     */
    List<Post> getPostByPostTitle(String postTitle);

    /**
     * 根据帖子标题删除帖子
     * @param postTitle 帖子标题
     */
    void deletePostByPostTitle(String postTitle);
}
